<cfparam name = "isresolved" default="0">

<cfinvoke component="cfcs.admin.errorlog" method="geterrors" isresolved="#isresolved#" returnvariable="qerrors" />
<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td width="10%" id="columnheaders">Number</td>
    <td width="20%" id="columnheaders">Date and Time</td>
    <td id="columnheaders">Message</td>
    <td id="columnheaders" width="10%"></td>
  </tr>
<cfoutput query = "qerrors">
  <tr class="menu_row" onMouseOver="this.className = 'menu_row_over2';" onMouseOut="this.className = 'menu_row';">
    <td class="menu_cell" onclick="window.location.href = 'index.cfm?c=errorlog&a=error_view&id=#id#';">#id#</td>
    <td class="menu_cell" onclick="window.location.href = 'index.cfm?c=errorlog&a=error_view&id=#id#';">#dateformat(errordate, "mmm dd, yyyy")# at #timeformat(errordate, "hh:mm")#</td>
    <td class="menu_cell" onclick="window.location.href = 'index.cfm?c=errorlog&a=error_view&id=#id#';"><div style="width: 100%; height: 35px; overflow: auto;">#brief#</div></td>
    <td class="menu_cell"><div align="right"><a href = "index.cfm?c=errorlog&a=error_view&id=#id#"><img src="images/view.png" alt="View Report" title="View Report" border="0" /></a> &nbsp;&nbsp;<a href="index.cfm?c=errorlog&a=error_delete&id=#id#"><img src="images/delete.png" alt="Delete Report" title="Delete Report" border="0" /></a></div></td>
  </tr>
</cfoutput>
</table>
<cfif qerrors.recordcount IS 0>
<div id="messages_hints">There are no errors in the log.  You can sleep well tonight knowing all is well.</div>
</cfif>